<template>
  <div class="Search-list">
    <div class="headers">
      <Header></Header>
      <ul>
        <li>
          <div>综合</div>
        </li>
        <li>
          <div>价格</div>
          <div class="search-filter">
            <i class="iconfont icon-shangjiantou"></i>
            <i class="iconfont icon-xiajiantou"></i>
          </div>
        </li>
        <li>
          <div>销量</div>
          <div class="search-filter">
            <i class="iconfont icon-shangjiantou"></i>
            <i class="iconfont icon-xiajiantou"></i>
          </div>
        </li>
      </ul>
    </div>

    <section>
      <ul>
        <li>
          <img src="../../assets/images/goods.png" alt="" />
          <h3>凤凰健康的防护好久开始的放假是开放后就开始的就开始减肥</h3>
          <div class="price">
            <div>
              <span>￥</span>
              <b>238</b>
            </div>
            <div>立即购买</div>
          </div>
        </li>
        <li>
          <img src="../../assets/images/goods.png" alt="" />
          <h3>凤凰健康的防护好久开始的放假是开放后就开始的就开始减肥</h3>
          <div class="price">
            <div>
              <span>￥</span>
              <b>238</b>
            </div>
            <div>立即购买</div>
          </div>
        </li>
        <li>
          <img src="../../assets/images/goods.png" alt="" />
          <h3>凤凰健康的防护好久开始的放假是开放后就开始的就开始减肥</h3>
          <div class="price">
            <div>
              <span>￥</span>
              <b>238</b>
            </div>
            <div>立即购买</div>
          </div>
        </li>
      </ul>
    </section>
    <Tabbar></Tabbar>
  </div>
</template>

<script>
import Header from "@/components/search/Header.vue";
export default {
  name: "Search-list",
  components: {
    Header,
  },
};
</script>

<style scoped lang="scss">
.Search-list {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  .headers ul {
    display: flex;
    justify-content: space-around;
    padding: 0.266667rem 0;
    font-size: 0.426667rem;
    li {
      display: flex;
      align-items: center;
      > div {
        padding: 0 0.08rem;
      }
    }
    .search-filter {
      display: flex;
      flex-direction: column;
    }
  }
  section {
    flex: 1;
    overflow: hidden;
    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        width: 50%;
        padding: 0.266667rem;
        img {
          width: 4.533333rem;
          height: 4.533333rem;
        }
        h3 {
          width: 100%;
          font-size: 0.373333rem;
          color: #222;
          font-weight: 400;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .price {
          display: flex;
          justify-content: space-between;
          padding: 0.266667rem 0;
          width: 100%;
          font-size: 0.426667rem;
          div:first-child {
            span {
              font-size: .32rem;
              color: #b0352f;
            }
            b {
              font-size: .426667rem;
              color: #b0352f;
            }
          }
          div:last-child {
            padding: 0.08rem 0.16rem;
            color: #fff;
            background-color: #b0352f;
            border-radius: 0.16rem;
          }
        }
      }
    }
  }
}
</style>